package BigDecimal;

import java.time.LocalDate;

public class Demo {
    public static void main(String[] args) {
        LocalDate currentDate = LocalDate.now();
        LocalDate firstDayOfMonth = currentDate.withDayOfMonth(1);
        LocalDate lastDayOfPreviousMonth = firstDayOfMonth.minusDays(1);
        System.out.println(lastDayOfPreviousMonth);
    }
}
